ActionController::Routing::Routes.draw do |map|
  map.resources :locals

  map.resources "ConsultaPessoa"

  map.resources :consultapessoa, :controller => "ConsultaPessoa"

  map.resources :pupils

  map.resources :aluno, :controller => :pupils

  map.resources :curriculodados

  map.resources :consulta_disciplinas

  map.resources :audits

  map.resources :teachers

  map.resources :docentes, :controller => :teachers

  map.resources :users

  map.resource :session

  
  map.resources :people

  map.resources :pessoa, :controller => :people

  map.resources :places

  map.resources :sala, :controller => :places

  map.resources :organs

  map.resources :orgao , :controller => :organs

  map.resources :users

  map.resources :usuarios , :controller => :users

  map.resource :session

  map.resources :relatorios

  map.resources :options

  map.resources :opcao , :controller => :options

  map.resources :ecs

  map.resources :estadocivil , :controller => :ecs

  map.resources :opcaotipos

  map.resources :sexos

  map.resources :sexo , :controller => :sexos

  map.resources :disciplinas

  map.resources :ocorrencias

  map.resources :ocorrenciagrupos

  map.resources :ingressos

  map.resources :desligamentos

  map.resources :ingressogrupos

  map.resources :desligamentogrupos

  map.resources :regimeletivos

  map.resources :fasematriculas

  map.resources :conhecimentoareas

  map.resources :bigareas

  map.resources :grandearea , :controller => :bigareas

  map.resources :basicareas

  map.resources :areabasica , :controller => :basicareas

  map.resources :avaliacaoareas

  map.resources :cursos

  map.resources :turnos

  map.resources :days

  map.resources :dia , :controller => :days

  map.resources :months

  map.resources :mes , :controller => :months

  map.resources :condados

  map.resources :municipio , :controller => :condados

  map.resources :levels

  map.resources :nivel , :controller => :levels

  map.resources :colegios

  map.resources :cities

  map.resources :cidade, :controller => :cities

  map.resources :countries

  map.resources :pais , :controller => :countries

  map.resources :estados

  map.resources :regions

  map.resources :regiao , :controller => :regions

  map.resources :areacurriculos

  map.resources :colegiotypes

  map.resources :tipocolegio , :controller => :colegiotypes

  map.resources :disciplinatypes

  map.resources :tipodisciplina , :controller => :discplinatypes

  map.resources :documenttypes

  map.resources :tipodocumento , :controller => :documenttypes

  map.resources :localtypes

  map.resources :tipolocal , :controller => :localtypes

  map.resources :tipolocals

  map.resources :tipolocal , :controller => :tipolocals

  map.resources :tipoopcoes

  map.resources :titulos

  map.resources :organtypes

  map.resources :tipoorgao , :controller => :organtypes

  map.resources :campus

  map.resources :condados

  map.resources :municipios, :controller => :condados

  map.resources :sobre

  map.resources :users  
  map.resource :session, :controller => :sessions
  map.signup '/signup', :controller => 'users', :action => 'new'
  map.login  '/login', :controller => 'sessions', :action => 'new'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'

  # The priority is based upon order of creation: first created -> highest priority.

  # Sample of regular route:
  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # Sample resource route (maps HTTP verbs to controller actions automatically):
  #   map.resources :products

  # Sample resource route with options:
  #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }

  # Sample resource route with sub-resources:
  #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
  
  # Sample resource route with more complex sub-resources
  #   map.resources :products do |products|
  #     products.resources :comments
  #     products.resources :sales, :collection => { :recent => :get }
  #   end

  # Sample resource route within a namespace:
  #   map.namespace :admin do |admin|
  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  #     admin.resources :products
  #   end

  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  map.root :controller => "sessions", :action => "new"

  # See how all your routes lay out with "rake routes"

  # Install the default routes as the lowest priority.
  # Note: These default routes make all actions in every controller accessible via GET requests. You should
  # consider removing the them or commenting them out if you're using named routes and resources.
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
